/*
 *  Copyright 2025 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
@import (reference) '../../../styles/variables.less';

.platform-insights-card {
  .other-charts-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }

  .other-charts-container.four-chart-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .percent-change-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: @green-9;
    border: 1px solid @green-16;
    border-radius: 6px;
    width: fit-content;
    padding: 0px 6px;
  }

  .other-charts-card.ant-card {
    .ant-card-body {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 12px;

      &::before,
      &::after {
        display: none;
      }

      .current-percentage {
        line-height: 20px;
        font-size: 20px;
        font-weight: 600;
      }
    }
  }
}
